package cool.goodbai.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
@ApiModel("")
public class Response<T> {
    /**
     * 是否成功
     */
    @ApiModelProperty(value = "是否成功")
    private Boolean success;
    /**
     * 状态码
     */
    @ApiModelProperty(value = "状态码")
    private Integer code;
    /**
     * 反馈信息
     */
    @ApiModelProperty(value = "反馈信息")
    private String errorMessage;
    /**
     * 时间戳
     */
    @ApiModelProperty(value = "时间戳")
    private Long timestamp;
    /**
     * 实体模板类数据
     */
    @ApiModelProperty(value = "实体数据")
    private T data;

    /**
     * 错误显示类型
     */
    @ApiModelProperty(value = "错误显示类型")
    private Integer showType;
}
